package com.two.service.caipin.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.two.common.entity.CollectVo;
import com.two.common.entity.Menu;
import com.two.service.caipin.vo.MenuPo;
import com.two.service.caipin.vo.RestaurantVo;
import com.two.service.caipin.vo.XicanVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;


@Mapper
@Component
public interface MenuDao extends BaseMapper<Menu> {

    List<Menu> selectall(RestaurantVo restaurantVo);


    List<Menu> selectLei(String mid);

    List<XicanVo> leicname();

    List<Menu> selectAll(Integer userid, CollectVo collectVo);

    List<Menu> cidName(Integer rid);

    List<Menu> selectcaiall();

    List<MenuPo> menupo(@Param("rid") Integer rid, @Param("cid") Integer cid, @Param("dishname") String dishname, @Param("usermonicker") String usermonicker);

    List<Menu> collectSelect(Integer userid);

    //模糊查询
    List<Menu> mohucaiall(String disName);
}
